package com.egreen.alipay.service;

import com.alipay.api.AlipayApiException;
import com.egreen.common.Result;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.math.BigDecimal;


/**
 * <p>
 *  服务类
 * </p>
 *
 * @author volcan
 * @since 2022-07-22
 */
public interface AlipayService  {

    Result getAlipayUserInfo(HttpServletRequest request) throws AlipayApiException;

    Result bindAlipayUserInfo(HttpServletRequest request);

    Result transfer(String transAmount,int id) throws AlipayApiException;

    Result recharge(BigDecimal money, int id,HttpServletResponse httpResponse) throws AlipayApiException;

    String notify(HttpServletRequest request);

}
